Object

RegistryItem Class

Creates and manages registry items on Windows. Does not apply to Macintosh or Linux.

Properties

FolderCount

KeyCount

Parent

Path

Methods

AddFolder

KeyType

Child

Name

DefaultValue

Value

Delete

Value

Item

 

Notes


Constructors

Name

Parameters

Description

RegisteryItem

Path as String [Create as Boolean]

Creates the registry item from the path passed to it. Returns a new RegistryItem. The optional parameter Create defaults to True; if you set it to False, the path will not be created if the path is not found. Instead, a RegistryItemAccessErrorException will occur.

RegisteryItem

Copy as RegistryItem

Clones the RegistryItem passed to it. Returns a new RegistryItem.



The Value method returns valid information for expandable strings, binary and multi-strings. In the case of expandable strings, REALbasic automatically expands the string for you and returns it as a string.

In the case of multi-strings, REALbasic passes back a String that is Chr(0)-delimited. Please use the Split function to get the individual parts, like this:

part = Split(regValue, Chr(0))

where part is a String array.

In the case of a binary value, REALbasic returns a MemoryBlock. You cannot currently set an expandable string, or a multistring. To set a binary string, please pass in a MemoryBlock.


See Also

RegistryAccessErrorException error.